// const CompressionPlugin = require('compression-webpack-plugin');//引入gzip压缩插件
module.exports = {
    productionSourceMap: false,//打包时不要map文件
    publicPath: '/media-view-screen',
    outputDir: 'media-view-screen',
    devServer: {
        open: true, //是否自动弹出浏览器页面
        // host: "localhost",
        port: '8081',
        https: false,
        hotOnly: false,
        proxy: {
            '/media-web-screen': {
                // target: 'http://192.168.2.41:8089/media-web-screen/', //东大
                // target: 'http://121.248.63.144/media-web-screen/', //API服务器的地址
                // target: 'http://120.53.104.37/media-web-screen/', //API服务器的地址
                // target: 'http://221.224.250.206:10080/media-web-screen/', //苏州日报
                // target: 'http://218.94.129.244/media-web-screen/', //苏州日报
                target: 'http://106.12.160.17:8090/fusion_media/', //测试
                ws: true,  //代理websockets
                changeOrigin: true, // 虚拟的站点需要更管origin
                pathRewrite: {   //重写路径 比如'/api/aaa/ccc'重写为'/aaa/ccc'
                    '^/media-web-screen': ''
                }
            }
        },
    }
}
